<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
      h1{
        /*color: #ff0000;*/
        /*color: #f00;*/
        /*color: rgb(255,0,0);*/
        color: rgba(255,0,0,0.5);
      }
      div{
        width: 200px;
        height: 200px;
        background-color: pink;
        /*设置背景图片*/
        background-image: url("../b.jpg");
        /*设置背景图片尺寸*/
        background-size: 200px,200px;
        /*静止重复*/
        background-repeat: no-repeat;
        /*设置背景图片位置*/
        /*background-position: 50px 50px;*/
        background-position: 50% 50%;
      }
    </style>
</head>
<body>
<div></div>
<h1>颜色测试</h1>
</body>
</html>